﻿namespace FFF.Test.Entity.FW.View
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.AutoMapper;
    using Abp.Domain.Entities;
    using FFF.Test.Entity.Framework.View;

	/// <summary>
    /// 用户表视图
    /// </summary>
	[Table("View_FW_User")]
    [Display(Name = "用户表视图", Description = "用户表视图")]
    [AutoMapTo(typeof(ViewFWUser))]  
    public partial class ViewFWUser : BaseView<Guid>
    {
        /// <summary>
        /// 用户GUID
        /// </summary>
		[Display(Name = "用户GUID", Description = "用户GUID")]
        [Column("UserGUID")]
        public override Guid Id { get; set; }
           
         /// <summary>
        /// 用户编码
        /// </summary>
		[Display(Name = "用户编码", Description = "用户编码")]
        [Column("UserCode", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserCode { get; set; }
           
         /// <summary>
        /// 用户名称
        /// </summary>
		[Display(Name = "用户名称", Description = "用户名称")]
        [Column("UserName", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserName { get; set; }
           
         /// <summary>
        /// 电子邮件
        /// </summary>
		[Display(Name = "电子邮件", Description = "电子邮件")]
        [Column("UserEmail", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserEmail { get; set; }
           
         /// <summary>
        /// 办公电话
        /// </summary>
		[Display(Name = "办公电话", Description = "办公电话")]
        [Column("UserOfficePhone", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserOfficePhone { get; set; }
           
         /// <summary>
        /// 移动电话
        /// </summary>
		[Display(Name = "移动电话", Description = "移动电话")]
        [Column("UserMobilePhone", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserMobilePhone { get; set; }
           
         /// <summary>
        /// 家庭电话
        /// </summary>
		[Display(Name = "家庭电话", Description = "家庭电话")]
        [Column("UserHomePhone", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserHomePhone { get; set; }
           
         /// <summary>
        /// 是否管理员
        /// </summary>
		[Display(Name = "是否管理员", Description = "是否管理员")]
        [Column("UserIsAdmin")]
         public byte UserIsAdmin { get; set; }
           
         /// <summary>
        /// 域账号
        /// </summary>
		[Display(Name = "域账号", Description = "域账号")]
        [Column("UserADAccount", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserADAccount { get; set; }
           
         /// <summary>
        /// 是否禁用
        /// </summary>
		[Display(Name = "是否禁用", Description = "是否禁用")]
        [Column("UserIsDisabeld")]
         public byte UserIsDisabeld { get; set; }
           
         /// <summary>
        /// 禁用原因
        /// </summary>
		[Display(Name = "禁用原因", Description = "禁用原因")]
        [Column("UserDisabledReason", TypeName = "VARCHAR(1024)")]
		[StringLength(1024)]
        public string UserDisabledReason { get; set; }
           
         /// <summary>
        /// 工号
        /// </summary>
		[Display(Name = "工号", Description = "工号")]
        [Column("UserJobNumber", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string UserJobNumber { get; set; }
           
         /// <summary>
        /// 是否用户修改密码
        /// </summary>
		[Display(Name = "是否用户修改密码", Description = "是否用户修改密码")]
        [Column("IsUserChangePWD")]
         public byte IsUserChangePWD { get; set; }
           
         /// <summary>
        /// 是否锁定
        /// </summary>
		[Display(Name = "是否锁定", Description = "是否锁定")]
        [Column("UserIsLocked")]
         public byte UserIsLocked { get; set; }
           
         /// <summary>
        /// 锁定时间
        /// </summary>
		[Display(Name = "锁定时间", Description = "锁定时间")]
        [Column("UserLockTime")]
         public DateTime? UserLockTime { get; set; }
           
         /// <summary>
        /// 职务
        /// </summary>
		[Display(Name = "职务", Description = "职务")]
        [Column("PUserosition", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string PUserosition { get; set; }
           
         /// <summary>
        /// 是否正式编制
        /// </summary>
		[Display(Name = "是否正式编制", Description = "是否正式编制")]
        [Column("IsFormalEstablishment")]
         public byte IsFormalEstablishment { get; set; }
           
         /// <summary>
        /// 上次IP地址
        /// </summary>
		[Display(Name = "上次IP地址", Description = "上次IP地址")]
        [Column("LastIpAdress", TypeName = "VARCHAR(1024)")]
		[StringLength(1024)]
        public string LastIpAdress { get; set; }
           
         /// <summary>
        /// 用户图像url(上传图片)
        /// </summary>
		[Display(Name = "用户图像url(上传图片)", Description = "用户图像url(上传图片)")]
        [Column("UserImageUrl", TypeName = "VARCHAR(512)")]
		[StringLength(512)]
        public string UserImageUrl { get; set; }
           
         /// <summary>
        /// 原图像url(上传图片)
        /// </summary>
		[Display(Name = "原图像url(上传图片)", Description = "原图像url(上传图片)")]
        [Column("UserPreImageUrl", TypeName = "VARCHAR(512)")]
		[StringLength(512)]
        public string UserPreImageUrl { get; set; }
           
         /// <summary>
        /// 登录失败次数
        /// </summary>
		[Display(Name = "登录失败次数", Description = "登录失败次数")]
        [Column("LoginErrorCount")]
         public int LoginErrorCount { get; set; }
           
         /// <summary>
        /// 上一次登录失败原因
        /// </summary>
		[Display(Name = "上一次登录失败原因", Description = "上一次登录失败原因")]
        [Column("LastLoginErrorTime")]
         public DateTime? LastLoginErrorTime { get; set; }
           
         /// <summary>
        /// 密码修改时间
        /// </summary>
		[Display(Name = "密码修改时间", Description = "密码修改时间")]
        [Column("PasswordModifyTime")]
         public DateTime? PasswordModifyTime { get; set; }
           
         /// <summary>
        /// 登录时间
        /// </summary>
		[Display(Name = "登录时间", Description = "登录时间")]
        [Column("LoginTime")]
         public DateTime? LoginTime { get; set; }
           
         /// <summary>
        /// 租户的GUID
        /// </summary>
		[Display(Name = "租户的GUID", Description = "租户的GUID")]
        [Column("TenantId")]
         public Guid? TenantId { get; set; }
           
         /// <summary>
        /// 是否删除
        /// </summary>
		[Display(Name = "是否删除", Description = "是否删除")]
        [Column("IsDeleted")]
         public byte IsDeleted { get; set; }
           
         /// <summary>
        /// 创建时间
        /// </summary>
		[Display(Name = "创建时间", Description = "创建时间")]
        [Column("CreateTime")]
         public DateTime CreateTime { get; set; }
           
         /// <summary>
        /// 创建人GUID
        /// </summary>
		[Display(Name = "创建人GUID", Description = "创建人GUID")]
        [Column("CreateGUID")]
         public Guid? CreateGUID { get; set; }
           
         /// <summary>
        /// 创建人名称
        /// </summary>
		[Display(Name = "创建人名称", Description = "创建人名称")]
        [Column("CreatedName", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string CreatedName { get; set; }
           
         /// <summary>
        /// 修改时间
        /// </summary>
		[Display(Name = "修改时间", Description = "修改时间")]
        [Column("ModifiedTime")]
         public DateTime? ModifiedTime { get; set; }
           
         /// <summary>
        /// 修改人GUID
        /// </summary>
		[Display(Name = "修改人GUID", Description = "修改人GUID")]
        [Column("ModifiedGUID")]
         public Guid? ModifiedGUID { get; set; }
           
         /// <summary>
        /// 修改人名称
        /// </summary>
		[Display(Name = "修改人名称", Description = "修改人名称")]
        [Column("ModifiedName", TypeName = "VARCHAR(256)")]
		[StringLength(256)]
        public string ModifiedName { get; set; }
           
         /// <summary>
        /// 审核状态
        /// </summary>
		[Display(Name = "审核状态", Description = "审核状态")]
        [Column("ApproveState", TypeName = "VARCHAR(32)")]
		[StringLength(32)]
        public string ApproveState { get; set; }
           
         /// <summary>
        /// 审核人GUID
        /// </summary>
		[Display(Name = "审核人GUID", Description = "审核人GUID")]
        [Column("ApproveGUID")]
         public Guid? ApproveGUID { get; set; }
           
         /// <summary>
        /// 审核时间
        /// </summary>
		[Display(Name = "审核时间", Description = "审核时间")]
        [Column("ApproveTime")]
         public DateTime? ApproveTime { get; set; }
           
         /// <summary>
        /// 公司GUID
        /// </summary>
		[Display(Name = "公司GUID", Description = "公司GUID")]
        [Column("BuUnitGUID")]
         public Guid? BuUnitGUID { get; set; }
           
         /// <summary>
        /// 用户ID自增长
        /// </summary>
		[Display(Name = "用户ID自增长", Description = "用户ID自增长")]
        [Column("UserIntID")]
         public int UserIntID { get; set; }
           
         /// <summary>
        /// 所属机构GUID(数)
        /// </summary>
		[Display(Name = "所属机构GUID(数)", Description = "所属机构GUID(数)")]
        [Column("BuUnitNewGUIDs", TypeName = "VARCHAR(1024)")]
		[StringLength(1024)]
        public string BuUnitNewGUIDs { get; set; }
           
         /// <summary>
        /// 是否为租户主账户
        /// </summary>
		[Display(Name = "是否为租户主账户", Description = "是否为租户主账户")]
        [Column("IsMainAccountUser")]
         public byte IsMainAccountUser { get; set; }
           
         /// <summary>
        /// 请求Token过期时间(分钟)
        /// </summary>
		[Display(Name = "请求Token过期时间(分钟)", Description = "请求Token过期时间(分钟)")]
        [Column("TokenExpiryMinute")]
         public int TokenExpiryMinute { get; set; }
           
         /// <summary>
        /// 请求Token的角色(,分割)
        /// </summary>
		[Display(Name = "请求Token的角色(,分割)", Description = "请求Token的角色(,分割)")]
        [Column("TokenRoles", TypeName = "VARCHAR(2048)")]
		[StringLength(2048)]
        public string TokenRoles { get; set; }
           
         /// <summary>
        /// 默认公司GUID
        /// </summary>
		[Display(Name = "默认公司GUID", Description = "默认公司GUID")]
        [Column("DefaultBuUnitGUID")]
         public Guid? DefaultBuUnitGUID { get; set; }
           
         /// <summary>
        /// 默认系统GUID
        /// </summary>
		[Display(Name = "默认系统GUID", Description = "默认系统GUID")]
        [Column("DefaultApplicationGUID")]
         public Guid? DefaultApplicationGUID { get; set; }
           
         /// <summary>
        /// StandardRoleGUIDs
        /// </summary>
		[Display(Name = "StandardRoleGUIDs", Description = "StandardRoleGUIDs")]
        [Column("StandardRoleGUIDs", TypeName = "VARCHAR(9999)")]
		[StringLength(9999)]
        public string StandardRoleGUIDs { get; set; }
           
         /// <summary>
        /// DefaultCompanyGUID
        /// </summary>
		[Display(Name = "DefaultCompanyGUID", Description = "DefaultCompanyGUID")]
        [Column("DefaultCompanyGUID")]
         public Guid? DefaultCompanyGUID { get; set; }
           
    }
}
